package org.simplesocket.simplenettycore.exceptions;

import java.util.Map;

public class SimpleNettyGlobalExceptionHandler implements GlobalExceptionHandler<Map<String, String>>{
    
    public record ErrorMsg(String message){}
    
    @Override
    public Map<String, String> handle(Throwable e) {
        return Map.of("message","Request error");
    }
    
}
